Skip to content

Conversation

@nim65s
Copy link

@nim65s nim65s commented Dec 22, 2025

Hi,

Users may want to provide absolute paths in CMAKE_INSTALL_INCLUDEDIR. When this is the case, we should not prefix it in any way.

Without this, building https://github.com/gazebosim/gz-transport v15 on nixos currently fail with:

CMake Error in test/integration/CMakeLists.txt:
  Imported target "zenohcxx_zenohc" includes non-existent path

    "/nix/store/8vadygf30zr2qlk8cqnnsdjc2h8a72cm-zenoh-cpp-1.4.0//nix/store/8vadygf30zr2qlk8cqnnsdjc2h8a72cm-zenoh-cpp-1.4.0/include"

edit: fix relocatable setup

@github-actions
Copy link

PR missing one of the required labels: {'api-sync', 'new feature', 'breaking-change', 'dependencies', 'enhancement', 'ci', 'documentation', 'internal', 'bug'}

Users may want to provide absolute paths in `CMAKE_INSTALL_INCLUDEDIR`.
When this is the case, we should not prefix it in any way.
@github-actions
Copy link

PR missing one of the required labels: {'new feature', 'bug', 'internal', 'enhancement', 'dependencies', 'documentation', 'breaking-change', 'ci', 'api-sync'}

@nim65s nim65s changed the title CMake: use CMAKE_INSTALL_FULL_INCLUDEDIR CMake: fix absolute include install dir Dec 23, 2025
@DenisBiryukov91 DenisBiryukov91 added the bug Something isn't working label Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants